package com.openlab.callsystem.controller;

import com.openlab.callsystem.entity.Business;
import com.openlab.callsystem.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/business")
public class BusinessController {
    @Autowired
    BusinessService service;
    @RequestMapping("/query")
    public List<Business> query(){
        return service.queryBusiness();
    }
}
